package net.esj.basic.core.view.tools.browser;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class DefaultSafariURLEncoder extends AbstractBrowserURLEncoder {

	public static DefaultSafariURLEncoder INSTANCE = new DefaultSafariURLEncoder();
	
	private DefaultSafariURLEncoder() {
		super();
	}

	@Override
	String encode(String str) {
		try {
			return URLEncoder.encode( new String(str.getBytes("iso-8859-1"),"utf-8"),"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return str;
	}

}
